<?php

return array(
	'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
	'name'=>'Hangman Game',
	'theme'=>'h',
	
	'defaultController'=>'site',
	'import'=>array(
		'application.models.*',
		'application.components.*',
	),
	'modules'=>array(
        'gii'=>array(
            'class'=>'system.gii.GiiModule',
            'password'=>'123',
            'ipFilters'=>array('127.0.0.1'),
            // 'newFileMode'=>0666,
            // 'newDirMode'=>0777,
        ),
    ),
	'components'=>array(
		'urlManager'=>array(
			'urlFormat'=>'path',
			'rules'=>array(
				'gii'=>'gii',
				'gii/<controller:\w+>'=>'gii/<controller>',
				'gii/<controller:\w+>/<action:\w+>'=>'gii/<controller>/<action>',
			),
		),
		'db'=>array(
			'connectionString' => 'sqlite:protected/data/weibo.db',
			'tablePrefix' => 'tbl_',
		),
		'db2'=>array(
			'connectionString' => 'mysql:host=localhost;dbname=discuz',
			'class'=>'CDbConnection',
			'emulatePrepare' => true,
			'username' => 'root',
			'password' => '',
			'charset' => 'utf8',
			//'tablePrefix' => 'tbl_',
		),
	)
/*	'components'=>array(
		'urlManager'=>array(
			'urlFormat'=>'path',
			'rules'=>array(
				'game/guess/<g:\w>'=>'game/guess',
			),
		),
	),
	*/
);